//配置文件
var _ = require('underscore');
_.mixin(require('../../Gruntfile/underscore.mixin'));
var commonConfig = require('../../common/config');

module.exports = {
    /*
     打包分组规则
     */
    group: {
        topic: ["topic"],
        index: ["index"],
    },
    /*
     配置依赖
     deps中jquery可以写成"$"、"jquery"两种形式
     */
    require: _.extend({
        common: {
            path: '__PATH__/js/common',
            deps: ['$']
        },
        bootstrap: {
            path: '__PATH__/bootstrap/js/bootstrap',
            deps: ['$']
        },
        bootstrap_wizard: {
            path: '__VENDOR__/plugins/bootstrap-wizard/jquery.bootstrap.wizard',
            deps: ['$', 'bootstrap']
        },
        elevatezoom: {
            path: '__VENDOR__/plugins/jquery.elevatezoom',
            deps: ['$']
        },
        idangerous: {
            path: '__VENDOR__/plugins/jquery.idangerous',
            deps: ['$']
        },
        swipebox: {
            path: '__VENDOR__/plugins/jquery.swipebox',
            deps: ['$']
        },
        tinyscrollbar: {
             path: '__VENDOR__/plugins/tinyscrollbar',
            deps: ['$']
        },
        jweixin: {
             path: '__VENDOR__/jweixin',
            deps: ['$']
        },
        photoswipe: {
             path: '__VENDOR__/photoswipe.min',
            deps: ['$']
        },
        photoswipe_ui: {
             path: '__VENDOR__/photoswipe-ui-default.min',
            deps: ['$']
        },
        jquery_transit: {
            path: '__VENDOR__/plugins/jquery.transit',
            deps: ['$']
        },
        hammer: {
            path: '__VENDOR__/hammer',
            deps: ['$']
        },
        jquery_hammer: {
            path: '__VENDOR__/plugins/jquery.hammer',
            deps: ['$']
        },
        initPhotoSwipeFromDOM: {
            path: '__VENDOR__/initPhotoSwipeFromDOM',
            deps: ['$']
        },
    }, commonConfig.require)
};